<div class="sebelumjud">
    <div class="jodol">Absen Instruktur —Recaps</div>
</div>

<div class="clear"></div>
    <div id="jumat">
        <div id="last">
                <p><span class="jad"><?php if(!empty($kelas)) echo $kelas['KODE_PELATIHAN'].'-'.$kelas['ANGKATAN'].' | </span><br />'.$kelas['NAMA_PELATIHAN'].'<br />ANGKATAN '.$kelas['ANGKATAN']?></p>
        </div>
        <?php if(!empty($list_sesi)) {?>
        <div id="texttabel">
            
            <table border="0" cellspacing="0" cellpadding="0">
            <tr>
                        <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th class="doraemon">Instructor</th>
                    <th class="doraemon">Assistant1</th>
                    <th class="doraemon">Assistant2</th>
            </tr>
            <?php
                for($i=0;$i<count($list_sesi);$i++){
                    echo '
                    <tr>
                        <td class="dora do"><span class="todoku">'.($i+1).'</span></td>
                        <td class="doraemon2">'.$list_sesi[$i]['TANGGAL'].'</td>
                        <td class="naruto naborder">';if(!empty($list_sesi[$i]['INSTRUKTUR'])) echo $list_sesi[$i]['INSTRUKTUR']['NAMA'];else echo '-';echo'</td>
                        <td class="naruto naborder">';if(!empty($list_sesi[$i]['ASISTEN1'])) echo $list_sesi[$i]['ASISTEN1']['NAMA'];else echo '-';echo'</td>
                        <td class="naruto naborder">';if(!empty($list_sesi[$i]['ASISTEN2'])) echo $list_sesi[$i]['ASISTEN2']['NAMA'];else echo '-';echo'</td>
                    </tr>
                        ';
                }
            ?>
                </table>
            <?php if(!empty($list_instruktur)){?>
                <table border="0" cellspacing="0" cellpadding="0" class="saypad">
                    <tr >
                    <th class="doraemon">Instructor</th>
                    <th>&nbsp;</th>
                    <th class="doraemon">Assistant</th>
                    <th>&nbsp;</th>
                </tr>
                <?php
                    $max = max(count($list_id_instruktur), count($list_id_asisten));
                    for($i=0;$i<$max;$i++){
                        echo '
                            <tr>';
                        
                            if(!empty($list_id_instruktur[$i]))
                                echo '<td class="naruto">'.$list_instruktur[$list_id_instruktur[$i]]['NAMA'].' </td>
                                <td class="dora di"><span class="todoku">'.$list_instruktur[$list_id_instruktur[$i]]['COUNT'].'</span></td>';
                            else echo '<td class="naruto"></td><td class="dora di"><span class="todoku"></span></td>';
                            
                            if(!empty($list_id_asisten[$i]))
                                echo '<td class="naruto naborder" >'.$list_asisten[$list_id_asisten[$i]]['NAMA'].' </td>
                            <td class="dora di"><span class="todoku">'.$list_asisten[$list_id_asisten[$i]]['COUNT'].'</span></td>';
                            else echo '<td class="naruto naborder" ></td><td class="dora di"><span class="todoku"></span></td>';
                            echo '
                            </tr>
                            ';
                    }
                    
                ?>
            </table>
            <?php }?>
</div>
        <?php } ?>
    </div>
    <div class="clear"></div>